import request from '@/utils/request'

// 查询流程配置列表
export function getProcessConfigList() {
    return request({
        url: '/workflow/getProcessConfigList',
        method: 'post'
    })
}

// 查询流程配置列表
export function getProcessConfigDetailList(data) {
    return request({
        url: '/workflow/getProcessConfigDetailList',
        method: 'post',
        data: data
    })
}

// 发布新的流程
export function deployProcess(query) {
    return request({
        url: '/workflow/deployProcess',
        method: 'post',
        data: query,
        headers: {
            'Content-Type': 'multipart/form-data' // 设置请求头为 multipart/form-data
        }
    })
}

// 查询流程信息
export function selectWorkflowBpmnPage(data) {
    return request({
        url: '/workflow/getWorkflowBpmnList',
        method: 'post',
        data: data
    })
}

// 流程可视化
export function getProcessInstanceDetail(data) {
    return request({
        url: '/workflow/getProcessInstanceDetail',
        method: 'post',
        data: data
    })
}